/*
 * @Author: 颜礼田 2564217790@qq.com
 * @Date: 2024-09-07 09:14:07
 * @LastEditors: MrDotYan 2564217790@qq.com
 * @LastEditTime: 2024-09-19 14:20:16
 * @FilePath: /webServer/src/configuration/export.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import * as validate from '@midwayjs/validate';
import * as info from '@midwayjs/info';
import * as swagger from '@midwayjs/swagger';
import * as bull from '@midwayjs/bull';
import * as cron from '@midwayjs/cron';
import * as jwt from '@midwayjs/jwt';
import * as security from '@midwayjs/security';
import * as busboy from '@midwayjs/busboy';
import * as passport from '@midwayjs/passport';
import * as staticFile from '@midwayjs/static-file';
import * as crossDomain from '@midwayjs/cross-domain';
import * as captcha from '@midwayjs/captcha';
import * as orm from '@midwayjs/typeorm';
import * as mailer from '@midwayjs/mailer';
import * as socketIO from '@midwayjs/socketio';
import * as redis from '@midwayjs/redis';

const DEV_COMPONENTS = [
  {
    component: info,
    enabledEnvironment: ['local'],
  },
];

const PROD_COMPONENTS = [
  validate,
  swagger,
  bull,
  cron,
  jwt,
  security,
  busboy,
  passport,
  staticFile,
  crossDomain,
  captcha,
  orm,
  mailer,
  socketIO,
  redis,
];

export const components = [...DEV_COMPONENTS, ...PROD_COMPONENTS];

export { useChecked } from './folder';
